//
//  HHChatDetailViewController.h
//  HHChatKit
//
//  Created by Henry on 2021/8/19.
//

#import <XLForm/XLForm.h>
#import "HHDetailUserModel.h"

NS_ASSUME_NONNULL_BEGIN

/// 继承XLForm
/// 更多用法参考：https://github.com/xmartlabs/XLForm

@interface HHChatDetailViewController : XLFormViewController

/// 标题字体
@property (nonatomic) UIFont *titleFont;
/// 标题颜色
@property (nonatomic) UIColor *titleColor;
/// 详情字体
@property (nonatomic) UIFont *detailFont;
/// 详情颜色
@property (nonatomic) UIColor *detailColor;

/// users
- (XLFormRowDescriptor *)addRowUser:(HHDetailUserModel *)model;

/// 标题
- (XLFormRowDescriptor *)rowWithTitle:(NSString *)title;

/// Switch
- (XLFormRowDescriptor *)rowSwitchWithTitle:(NSString *)title;

/// 居中Button
- (XLFormRowDescriptor *)rowButtonWithTitle:(NSString *)title color:(UIColor *)color;

/// 标题 箭头
- (XLFormRowDescriptor *)rowArrowWithTitle:(NSString *)title viewControllerClass:(nullable Class)viewControllerClass;

/// 标题 详情 箭头
- (XLFormRowDescriptor *)rowArrowWithTitle:(NSString *)title detail:(nullable NSString *)detail viewControllerClass:(nullable Class)viewControllerClass;

@end

NS_ASSUME_NONNULL_END
